﻿@model Model.Usuario

@{
    ViewBag.Title = "Editar";
}

<h1>Editar Terminal</h1>

@if (ViewBag.Error == true)
{
    <p>Hubo un error</p>
}

<form method="post" action="@Url.Action("Editar", "Usuario", new {id=Model.id})">
    <div>
        <label>Nombre de Usuario</label> <input class="form-control" type="text" name="username" value="@Model.username" /> @Html.ValidationMessageFor(model => model.username)
    </div>

    <div>
        <label>Nombre Real:</label> <input class="form-control"  type="text" name="realName" value="@Model.realName" /> @Html.ValidationMessageFor(model => model.realName)
    </div>
    <div>
        <label>Email</label> <input class="form-control"  type="text" name="mail" value="@Model.mail" /> @Html.ValidationMessageFor(model => model.mail)
    </div>




    @*<p>Legajo: @Model.Legajo</p>*@
    <input type="submit" value="Actualizar" />
</form>